﻿using System.Reflection;
using Autofac;
using NUnit.Framework;
using ReactiveGraph.Object.Configuration.Containers;
using ReactiveGraph.Object.Tests;

namespace ReactiveGraph.Object.Configuration.Tests.Containers
{
    [TestFixture]
    public class AutofacObjectModuleTests : ContainerTestsBase
    {
        private IContainer _container;

        [SetUp]
        public void Setup()
        {
            typeof (Foo).Assembly.GetLoadedModules();

            var builder = new ContainerBuilder();
            builder.RegisterModule<AutofacObjectModule>();
           

            _container = builder.Build();
            
        }

        protected override T Resolve<T>()
        {
            return _container.Resolve<T>();
        }
    }
}
